package com.woniu.cinema.api;

import com.woniu.cinema.domain.*;
import com.woniu.cinema.vo.MovieVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("cinema-service")
public interface CinemaFeignApi {

    @RequestMapping("/cinema/seat/updateBatchSeatStatus")
    public Integer updateBatchSeatStatus(@RequestParam(value = "seatIdList") List<Long> seatIdList);

    @RequestMapping("/cinema/seat/revertBatchSeatStatus")
    public Integer revertBatchSeatStatus(@RequestParam(value = "seatIdList") List<Long> seatIdList);


    @RequestMapping(value = "/cinema/hallmovie/feign/queryHallMovieById")
    public HallMovie queryHallMovieById(@RequestParam(value = "hallMovieId") Long hallMovieId);

    @RequestMapping("/cinema/cinema/listAll")
    public List<Cinema> listAllCinema(@RequestParam("id") Long id);

    @RequestMapping("/cinema/actor/listAll")
    public List<Actor> listAllActor(@RequestParam("id") Long id);


    @RequestMapping("/cinema/movie/listAll")
    public List<MovieVo> listAllMovie(@RequestParam("id") Long id);


    @RequestMapping("/cinema/movieactor/listAllMovieAcotr")
    public List<MovieActor> listAllMovieActor();

}
